<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('入库主子表视图列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>单据状态：</label>
                                <select id="status" name="status" th:height="300px">
                                    <option value="">---请选择---</option>
                                    <option value="1" selected="selected">入库开单</option>
                                    <option value="2">已审核</option>
                                    <option value="3">单据执行</option>
                                    <option value="4">执行完成</option>
                                    <option value="5">单据确认</option>
                                    <option value="6">单据作废</option>
                                    <option value="7">回传完成</option>
                                </select>
                            </li>
                            <li>
                                <label>单据id：</label>
                                <input type="text" name="stockinId"/>
                            </li>
                            <li>
                                <label>入库类型：</label>
                                <select name="inType">
                                    <option value="">---请选择---</option>
                                    <option value="0">采购</option>
                                    <option value="1">调拨</option>
                                </select>
                            </li>
                            <li>
                                <label>建单时间：</label>
                                <input type="text" name="createDate"/>
                            </li>
                            <li>
                                <label>供应商id：</label>
                                <input type="text" name="supplierId"/>
                            </li>
                            <li>
                                <label>客户id：</label>
                                <input type="text" name="customerId"/>
                            </li>
                            <li>
                                <label>建单人id：</label>
                                <input type="text" name="createManId"/>
                            </li>

                            <li>
                                <label>仓库id：</label>
                                <input type="text" name="warehouseId"/>
                            </li>
                            <li>
                                <label>单据来源：</label>
                                <select id="stockinSource" name="stockinSource">
                                    <option value="">---请选择---</option>
                                    <option value="1">WMS建单入库</option>
                                    <option value="2">ERP入库</option>
                                </select>
                            </li>

                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">

            </div>
            <div id="div" class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('mydo:viewStockinandDetail:edit')}]];
        var removeFlag = [[${@permission.hasPermi('mydo:viewStockinandDetail:remove')}]];
        var prefix = ctx + "mydo/viewStockinandDetail";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                height: $("#div").height()/1,
                exportUrl: prefix + "/export",
                modalName: "入库主子表视图",
                columns: [{
                    checkbox: true
                },
                // {
                //     field: 'stockinGuid',
                //     title: '单据guid'
                // },
                {
                    field: 'stockinId',
                    title: '单据id'
                },
                {
                    field: 'inType',
                    title: '入库类型'
                },
                {
                    field: 'createDate',
                    title: '建单时间'
                },
                {
                    field: 'supplierId',
                    title: '供应商id'
                },
                {
                    field: 'customerId',
                    title: '客户id'
                },
                {
                    field: 'createManId',
                    title: '建单人id'
                },
                {
                    field: 'status',
                    title: '单据状态'
                },
                {
                    field: 'warehouseId',
                    title: '仓库id'
                },
                {
                    field: 'stockinSource',
                    title: '单据来源'
                },
                {
                    field: 'classNowId',
                    title: '班次id'
                },
                {
                    field: 'lineId',
                    title: '产线id'
                },
                {
                    field: 'finishDate',
                    title: '完成日期'
                },
                {
                    field: 'FID',
                    title: 'fid'
                },
                {
                    field: 'supplierName',
                    title: '供应商名称'
                },
                {
                    field: 'customerName',
                    title: '客户名称'
                },
                {
                    field: 'warehouseName',
                    title: '仓库名称'
                },
                {
                    field: 'productName',
                    title: '物资名称'
                },
                {
                    field: 'stockinDetailId',
                    title: '子单id'
                },
                {
                    field: 'lotNo',
                    title: '批号'
                },
                {
                    field: 'productGuid',
                    title: '物资guid'
                },
                {
                    field: 'productId',
                    title: '物资id'
                },
                {
                    field: 'quantity',
                    title: '数量'
                },
                {
                    field: 'quantityX',
                    title: '数量x'
                },
                {
                    field: 'quantityJ',
                    title: '数量j'
                },
                {
                    field: 'price',
                    title: '单价'
                },
                {
                    field: 'cargoNo',
                    title: '货位'
                },
                {
                    field: 'remark',
                    title: '备注'
                },
                {
                    field: 'assignNum',
                    title: '实际数量'
                },
                {
                    field: 'assignNumX',
                    title: '实际数量x'
                },
                {
                    field: 'assignNumJ',
                    title: '实际数量j'
                },
                {
                    field: 'printDate',
                    title: '生产日期'
                },

                ]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>